package cn.tedu.eb_film.mapper;

import cn.tedu.eb_film.pojo.entity.CinemaHall;
import cn.tedu.eb_film.pojo.vo.CinemaHallListVO;
import cn.tedu.eb_film.pojo.vo.CinemaHallStandardVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CinemaHallMapper {

    int insert(CinemaHall cinemaHall);

    CinemaHallStandardVO selectById(Long id);

    int updateById(CinemaHall cinemaHall);

    List<CinemaHallListVO> listByCinemaId(Long cinemaId);

    int countByNameAndCinemaId(@Param("name") String name, @Param("cinemaId") Long cinemaId);

}